import E from 'wangeditor'
function creates (name,id,th,num){
    name = new E(id)
    name.config.height = 260
    name.config.zIndex = 500
    name.create()
    name.config.onchange=function(html){
        //获取输入的内容 将其添加到指定的value中
        //1为学习计划填写的内容
        //2为学习小题填写的内容
        if(num=="1")th.ProccessContentValue=html
        if(num=="2")th.soluIdValue=html
        if(num=="3")th.topicValue=html
    }
}
const Editor = {
    creates,
}
export default Editor